﻿CREATE TABLE [PR].[DocDeleteLog] (
    [Id]        INT          IDENTITY (1, 1) NOT NULL,
    [TableName] VARCHAR (50) NOT NULL,
    [IdValue]   INT          NOT NULL,
    [MD]        DATETIME     NOT NULL,
    [MW]        VARCHAR (50) NOT NULL,
    CONSTRAINT [PK_PR.DocDeleteLog] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Наменование таблицы', @level0type = N'SCHEMA', @level0name = N'PR', @level1type = N'TABLE', @level1name = N'DocDeleteLog', @level2type = N'COLUMN', @level2name = N'TableName';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Значение идентификатора удаляемой записи', @level0type = N'SCHEMA', @level0name = N'PR', @level1type = N'TABLE', @level1name = N'DocDeleteLog', @level2type = N'COLUMN', @level2name = N'IdValue';

